<?php
/**
 * Amazon-fba移库配置
 * (amazon-model)
 */
namespace App\Models\Amazon;

use Illuminate\Database\Eloquent\Model;
class FbaRemovalOrderDetailCondition extends Model
{
    protected $connection = 'mysql_amazon';

    protected $table = 'fba_removal_order_detail_condition';

    protected $guarded  = [];

    public static function getRequestDate(){
        return self::query()->value('request_date');
    }

    public static function upRequestDate(){
        $returnDate = FbaRemovalOrderDetail::getRequestDate();
        $re = self::query()->first();
        $re->request_date = $returnDate;
        return $re->save();
    }
}
